package com.cos.shop.dao;

import com.cos.shop.entity.User;

import java.sql.SQLException;

/**
 * @author: COS
 * @time: 2023/5/9 15:33
 * @description:
 */
public interface UserDao {
    /**
     * @author: COS
     * @time: 2023/5/9 15:33
     * @description: 使用用户名查询用户数据
     */
    User findUserByName(String username) throws SQLException;

    int insertUser(User u) throws SQLException;

    User getUserByEmailAndCode(String email, String code) throws SQLException;

    int activate(int uid) throws SQLException;

    User getUserByUsername(String username) throws SQLException;
}
